package com.zbs.framework.common.constant;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class Constants {
    // 验证码类型
    public static String LOGIN_CODE_TYPE = "LOGIN_CODE_TYPE";
    public static String UPDATE_PWD_CODE_TYPE = "UPDATE_PWD_CODE_TYPE";
    public static String REGISTER_CODE_TYPE = "REGISTER_CODE_TYPE";
    /**
     * 启用 1
     * 禁用 0
     */
    public static Integer ACCOUNT_ENABLE = 1;
    public static Integer ACCOUNT_DISABLE = 0;

    /**
     * 0 未删除
     * 1 删除
     */
    public static Integer NOT_DELETE = 0;
    public static Integer IS_DELETE = 1;

    /**
     * 用户类型 1 admin 2 普通用户
     */
    public static Integer USER_TYPE_ADMIN = 1;
    public static Integer USER_TYPE_NORMAL = 2;


    public static String tokenSuffix = "_token_";
    public static String tokenPrefix = "token:user:";

    public static Map<String,String> emailSetting = new HashMap<>();

    public static final ConcurrentHashMap<String ,Long> limitedIpMap = new ConcurrentHashMap<>();
    public static final  ConcurrentHashMap<String, Long[]> ipMap  = new ConcurrentHashMap<>();
}
